package com.login;

import java.util.Scanner;

public class Login {


    public boolean check(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名");
        String uname = scanner.nextLine();
        System.out.println("请输入密码");
        Scanner scanner1 = new Scanner(System.in);
        String pwd = scanner1.nextLine();
        if(uname.equals("小明") && pwd.equals("123456")){
            for(int i=0;i<uname.length();i++){
                System.out.println(uname.charAt(i));
            }
            return true;
        }
        return false;
    }
}
